<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.hexus.eve.application.Constants" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<s:set var="contextPath">${pageContext.request.contextPath}</s:set>
<s:set var="UNAVAILABLE"><%=Constants.Statuses.AVAILABLE%></s:set>
<s:url id="deleteUrl" value="/widgets/DeleteCharacter"/>

<div style="float:left; padding-left:5px; padding-right: 5px; text-align: center">
	<div>
		<img onclick="alert('test')" height="64px" width="64px" alt="${character.name}" src="http://image.eveonline.com/character/${character.characterID}_64.jpg"/>
	</div>

	<div>
		<!-- 
		<s:url id="deleteUrl" value="/widgets/DeleteAccount"/>
		<sx:submit cssStyle="display: none" id="delete%{character.id}" beforeNotifyTopics="/before" executeScripts="true" cssClass="ajax_button" targets="account%{character.account.id}" href="%{#deleteUrl}" type="image" key="delete" src="%{#contextPath}/img/small_cancel_16.png"/>
		 -->
	</div>
	<div>${character.name}</div>
</div>

<!-- 
<span style="padding-right: 40px; width: 64px;">
			<img alt="${character.name}" src="http://image.eveonline.com/character/${character.characterID}_64.jpg"/>
			<s:if test="character.account.availabilityStatus.toString() == #UNAVAILABLE.toString()">
				<span style="position: relative; top: -32px; left:0px;">
					<s:url id="deleteUrl" value="/widgets/DeleteAccount"/>
					<sx:submit beforeNotifyTopics="/before" executeScripts="true" cssClass="ajax_button" targets="account%{character.account.id}" href="%{#deleteUrl}" type="image" key="delete" src="%{#contextPath}/img/small_cancel_16.png"/>
				</span>
			</s:if>
			<div>${character.name}</div>
			-->					
<!-- 
	<table style="display:inline">
		<tr><td width="64px" height="64px" align="center">
			<img alt="${character.name}" src="http://image.eveonline.com/character/${character.characterID}_64.jpg"/>
			<s:if test="character.account.availabilityStatus.toString() == #UNAVAILABLE.toString()">
				<span style="position: relative; top: -32px; left:0px;">
					<s:url id="deleteUrl" value="/widgets/DeleteAccount"/>
					<sx:submit beforeNotifyTopics="/before" executeScripts="true" cssClass="ajax_button" targets="account%{character.account.id}" href="%{#deleteUrl}" type="image" key="delete" src="%{#contextPath}/img/small_cancel_16.png"/>
				</span>
			</s:if>
			${character.name}					
		</td></tr>
		<tr><td>
			<span class="${character.account.availabilityStatus}">
				<span style="position:relative; ">
				</span>
			</span>
		</td></tr>
	</table> -->
	<!-- 
</span> -->
